package org.liuyunfeng.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: TanJingyu
 * @create: 2022-03-23 15:08
 **/
@RestController
@RequestMapping("/sys")
public class SystemController {

    @GetMapping("/shutdown")
    public String shutdown() {
        System.exit(0);

        return "success...";
    }
}

    